//
//  CAIUpgradeAlert.h
//  CHSUpgradeManager
//
//  Created by 海参 on 2021/9/16.
//

#import <UIKit/UIKit.h>
#import "CAIUpdateAlertConfiguration.h"

NS_ASSUME_NONNULL_BEGIN


@interface CAIUpgradeAlert : UIView

/// 图标
@property (nonatomic, strong) CAIUpdateAlertConfiguration *alertConfig;


/// 构造器方法，默认加载在当前window上，全屏
/// @param title 标题
/// @param content 内容
/// @param nextBlock 确认事件回调
+ (CAIUpgradeAlert *)showAlertWithImage:(nullable UIImage *)image
                                  title:(NSString *)title
                                content:(nullable NSString *)content
                                isForce:(BOOL)isForce
                              nextBlock:(nullable void(^)(void))nextBlock;



/// 弹出动画
- (void)show;

/// 收回动画
- (void)hide;
@end

NS_ASSUME_NONNULL_END
